package com.menu.service;

import com.menu.dao.UserDao;
import com.menu.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * author: MaHX
 * date: 2019/8/8/20:30
 * description:
 **/
@Service
public class UserService extends BaseService<User,UserDao>{
    @Autowired
    UserDao userDao;

    public User findUserByUsername(String username){
        return userDao.findUserByUsername(username);
    }

    public User findUserByPhone(String phone){
        return userDao.findUserByPhone(phone);
    }

    public void reset(User user){
        userDao.reset(user);
    }

}
